package com.gitee.freakchicken.dbapi.basic.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.gitee.freakchicken.dbapi.basic.domain.AccessLog;
import com.gitee.freakchicken.dbapi.basic.service.C_Sd8op4uS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/access")
public class C_0aNHP8p5 {

    @Autowired
    private C_Sd8op4uS gf_Cf4q4rcH;

    @RequestMapping("/all")
    public List<AccessLog> m_K0EcYA27() {
        List<AccessLog> lf_sU7Gk8HL = gf_Cf4q4rcH.m_rfny4iEJ();
        return lf_sU7Gk8HL;
    }

    @RequestMapping("/search")
    public List<AccessLog> m_ZKpqQeS0(String url, String clientId, Long start, Long end, Integer status, String ip) {
        return gf_Cf4q4rcH.m_NWhnXFKq(url, clientId, start, end, status, ip);
    }

    @RequestMapping("/countByDay")
    public JSONArray m_yMv2WDIw(Long start, Long end) {
        return gf_Cf4q4rcH.m_g7UAFZko(start, end);
    }

    @RequestMapping("/top5api")
    public List<JSONObject> m_CNkL9tmN(long start, long end) {
        return gf_Cf4q4rcH.m_Kf2awQwD(start, end);
    }

    @RequestMapping("/top5client")
    public List<JSONObject> m_GexuxCfn(long start, long end) {
        return gf_Cf4q4rcH.m_JpcNKfSW(start, end);
    }

    @RequestMapping("/topNIP")
    public List<JSONObject> m_W7gd4tU9(long start, long end) {
        return gf_Cf4q4rcH.m_6ITd9qg9(start, end);
    }

    @RequestMapping("/top5duration")
    public List<JSONObject> m_dGWXv7hv(long start, long end) {
        return gf_Cf4q4rcH.m_EhDMots5(start, end);
    }

    @RequestMapping("/successRatio")
    public JSONObject m_1hJ8i0oc(long start, long end) {
        return gf_Cf4q4rcH.m_rzIsVD8J(start, end);
    }
}
